//
//  DFConst.swift
//  FlyBlog
//
//  Created by FEI on 16/4/11.
//  Copyright © 2016年 FEI. All rights reserved.
//

import UIKit

//swift中,只要不是在类里面的文件,全局都可以使用
func DFPrint(item:Any,file:String = __FILE__,line: Int = __LINE__,function: String = __FUNCTION__) {
    #if DEBUG
        print((file as NSString).lastPathComponent + ",[\(line)]行,方法名称：" + function + "输出: \(item)")
    #endif
}

let accountPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last!.stringByAppendingString("/account.plist")

//全局背景颜色
let GlobalBackgroundColor = UIColor.whiteColor()

//tabBar数量
let DFMainTabBarButtonCount = 5

//MARK: 授权相关
//授权地址
let OauthURL = "https://api.weibo.com/oauth2/authorize"

//appkey
let client_id = "1993092030"

//回调地址
let redirect_uri = "http://www.baidu.com"

// 申请应用时分配的AppSecret
let client_secret = "d2fba5008879aafb58d51814f36d4bda"

// 请求的类型
let grant_type = "authorization_code"

//accessToken地址
let accessTokenURLString = "https://api.weibo.com/oauth2/access_token"

// MARK - cell的常量
// 用户名称大小
let DFStatusNameFontSize: CGFloat = 14

// 时间文字大小
let DFStatusTimeFontSize: CGFloat = 11

// 微博文字大小
let DFStatusContentFontSize: CGFloat = 15

// 微博内容间距
let DFStatusCellMargin: CGFloat = 8

// 微博头像大小
let DFStatusIconWH: CGFloat = 35